<?php


namespace app\validate;

use think\Validate;

class OutLog extends Validate
{
    protected $rule =   [
        'commodity_id'  => 'require',
        'num'   => 'number|gt:0',
    ];

    protected $message  =   [
        'commodity_id.require' => '商品Id不能为空',
        'num.number'   => '数量只能为数字',
        'num.gt'  => '数量需要大于零',
    ];



}